.class public final Lm;
.super Ljava/lang/Object;


# static fields
.field public static B:Ljavax/microedition/io/ContentConnection;

.field public static Code:Ljava/lang/String;

.field public static I:Ljava/lang/String;

.field public static J:Ljava/lang/String;

.field public static Z:Ljava/lang/String;

.field public static c:Ljava/util/Vector;

.field public static d:Z


# instance fields
.field public C:I

.field public a:I

.field public b:Z

.field private e:Ljavax/microedition/lcdui/Image;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, -0x1

    iput v0, p0, Lm;->C:I

    return-void
.end method

.method private Code(Ljava/lang/Throwable;Ljava/lang/String;)V
    .locals 2

    sget-object v0, LBrowser;->Z:Lah;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Lah;->Code(I)Le;

    move-result-object v0

    if-eqz v0, :cond_0

    sget-object v1, LBrowser;->Z:Lah;

    invoke-virtual {v1, v0}, Lah;->I(Le;)Z

    :cond_0
    sget-object v0, LBrowser;->Z:Lah;

    invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lah;->I(Ljava/lang/String;)V

    const/4 v0, 0x0

    sput-object v0, Lm;->Code:Ljava/lang/String;

    return-void
.end method

.method private Z(Z)Ljava/lang/String;
    .locals 5

    const/4 v3, 0x0

    sget-object v0, Lm;->B:Ljavax/microedition/io/ContentConnection;

    if-eqz v0, :cond_0

    sget-object v0, Lm;->J:Ljava/lang/String;

    if-nez v0, :cond_2

    :cond_0
    move-object v0, v3

    :cond_1
    :goto_0
    return-object v0

    :cond_2
    if-eqz p1, :cond_4

    const-string v0, ".name"

    :goto_1
    sget-object v1, Lm;->J:Ljava/lang/String;

    const-string v2, "image"

    invoke-virtual {v1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_5

    new-instance v1, Ljava/lang/StringBuffer;

    invoke-direct {v1}, Ljava/lang/StringBuffer;-><init>()V

    const-string v2, "fileconn.dir.photos"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    :cond_3
    :goto_2
    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    if-nez v1, :cond_7

    move-object v0, v3

    goto :goto_0

    :cond_4
    const-string v0, ""

    goto :goto_1

    :cond_5
    sget-object v1, Lm;->J:Ljava/lang/String;

    const-string v2, "video"

    invoke-virtual {v1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_6

    new-instance v1, Ljava/lang/StringBuffer;

    invoke-direct {v1}, Ljava/lang/StringBuffer;-><init>()V

    const-string v2, "fileconn.dir.videos"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_2

    :cond_6
    sget-object v1, Lm;->J:Ljava/lang/String;

    const-string v2, "audio"

    invoke-virtual {v1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_3

    new-instance v1, Ljava/lang/StringBuffer;

    invoke-direct {v1}, Ljava/lang/StringBuffer;-><init>()V

    const-string v2, "fileconn.dir.music"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_2

    :cond_7
    invoke-static {v0}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    if-eqz p1, :cond_1

    if-eqz v0, :cond_8

    const-string v1, "null"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    :cond_8
    sget-object v1, Lm;->Z:Ljava/lang/String;

    if-eqz v1, :cond_1

    sget-object v0, Lm;->Z:Ljava/lang/String;

    sget-object v1, Lm;->Z:Ljava/lang/String;

    const/16 v2, 0x2f

    sget-object v3, Lm;->Z:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v3

    const/4 v4, 0x2

    sub-int/2addr v3, v4

    invoke-virtual {v1, v2, v3}, Ljava/lang/String;->lastIndexOf(II)I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    const-string v1, "/"

    invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    const/4 v1, 0x0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v2

    const/4 v3, 0x1

    sub-int/2addr v2, v3

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    goto/16 :goto_0
.end method


# virtual methods
.method public final B(Ljava/lang/String;)V
    .locals 5

    const-string v0, "/"

    const/4 v1, 0x0

    :try_start_0
    const-string v0, "/"

    invoke-virtual {p1, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_1

    new-instance v0, Ljava/lang/StringBuffer;

    invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    const-string v2, "/"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    :goto_0
    new-instance v2, Ljava/lang/StringBuffer;

    invoke-direct {v2}, Ljava/lang/StringBuffer;-><init>()V

    const-string v3, "file:///"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v2

    sget-object v3, Lm;->Code:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    const/4 v2, 0x3

    invoke-static {v0, v2}, Ljavax/microedition/io/Connector;->open(Ljava/lang/String;I)Ljavax/microedition/io/Connection;

    move-result-object v0

    check-cast v0, Ljavax/microedition/io/file/FileConnection;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :try_start_1
    invoke-interface {v0}, Ljavax/microedition/io/file/FileConnection;->exists()Z

    move-result v1

    if-nez v1, :cond_0

    invoke-interface {v0}, Ljavax/microedition/io/file/FileConnection;->mkdir()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    :cond_0
    invoke-static {v0}, Ln;->Code(Ljava/lang/Object;)V

    :goto_1
    return-void

    :catch_0
    move-exception v0

    :goto_2
    :try_start_2
    const-string v2, "FileSystem.mkdir"

    invoke-direct {p0, v0, v2}, Lm;->Code(Ljava/lang/Throwable;Ljava/lang/String;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    invoke-static {v1}, Ln;->Code(Ljava/lang/Object;)V

    goto :goto_1

    :catchall_0
    move-exception v0

    :goto_3
    invoke-static {v1}, Ln;->Code(Ljava/lang/Object;)V

    throw v0

    :catchall_1
    move-exception v1

    move-object v4, v1

    move-object v1, v0

    move-object v0, v4

    goto :goto_3

    :catch_1
    move-exception v1

    move-object v4, v1

    move-object v1, v0

    move-object v0, v4

    goto :goto_2

    :cond_1
    move-object v0, p1

    goto :goto_0
.end method

.method public final C(Ljava/lang/String;)V
    .locals 3

    const/4 v0, 0x0

    if-eqz p1, :cond_0

    :try_start_0
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_0

    new-instance v1, Ljava/lang/StringBuffer;

    invoke-direct {v1}, Ljava/lang/StringBuffer;-><init>()V

    const-string v2, "file:///"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x2

    invoke-static {v1, v2}, Ljavax/microedition/io/Connector;->open(Ljava/lang/String;I)Ljavax/microedition/io/Connection;

    move-result-object p0

    check-cast p0, Ljavax/microedition/io/file/FileConnection;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :try_start_1
    invoke-interface {p0}, Ljavax/microedition/io/file/FileConnection;->delete()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    move-object v0, p0

    :cond_0
    invoke-static {v0}, Ln;->Code(Ljava/lang/Object;)V

    :goto_0
    return-void

    :catchall_0
    move-exception v1

    :goto_1
    invoke-static {v0}, Ln;->Code(Ljava/lang/Object;)V

    goto :goto_0

    :catchall_1
    move-exception v0

    move-object v0, p0

    goto :goto_1
.end method

.method public final Code(Lg;Ljava/lang/String;ILjava/lang/String;)I
    .locals 8

    const/4 v0, 0x0

    const/4 v1, 0x0

    :try_start_0
    const-string v2, ""

    if-eqz p1, :cond_a

    iget-object v2, p1, Lg;->ad:[B
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz v2, :cond_a

    if-eqz p2, :cond_a

    const/4 v2, 0x0

    move v7, v2

    move-object v2, v0

    move v0, v7

    :goto_0
    add-int/lit8 v0, v0, 0x1

    :try_start_1
    iget-object v3, p1, Lg;->C:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->hashCode()I

    move-result v3

    new-instance v4, Ljava/lang/Long;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v5

    invoke-direct {v4, v5, v6}, Ljava/lang/Long;-><init>(J)V

    invoke-virtual {v4}, Ljava/lang/Long;->hashCode()I

    move-result v4

    xor-int/2addr v3, v4

    new-instance v4, Ljava/lang/StringBuffer;

    invoke-direct {v4}, Ljava/lang/StringBuffer;-><init>()V

    invoke-static {v3}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v4, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    const-string v4, ".obml"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v3

    new-instance v4, Ljava/lang/StringBuffer;

    invoke-direct {v4}, Ljava/lang/StringBuffer;-><init>()V

    const-string v5, "file:///"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    invoke-virtual {v4, p2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    const-string v5, "/"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    invoke-virtual {v4, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v4

    const/4 v5, 0x2

    invoke-static {v4, v5}, Ljavax/microedition/io/Connector;->open(Ljava/lang/String;I)Ljavax/microedition/io/Connection;

    move-result-object p0

    check-cast p0, Ljavax/microedition/io/file/FileConnection;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_3

    :try_start_2
    invoke-interface {p0}, Ljavax/microedition/io/file/FileConnection;->create()V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0

    move-object v2, v4

    :goto_1
    if-nez v2, :cond_0

    const/4 v2, 0x5

    if-lt v0, v2, :cond_9

    :cond_0
    :try_start_3
    invoke-interface {p0}, Ljavax/microedition/io/file/FileConnection;->openDataOutputStream()Ljava/io/DataOutputStream;
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_2

    move-result-object v0

    :try_start_4
    iget-object v1, p1, Lg;->ad:[B

    array-length v1, v1

    shr-int/lit8 v1, v1, 0x10

    invoke-virtual {v0, v1}, Ljava/io/DataOutputStream;->writeByte(I)V

    iget-object v1, p1, Lg;->ad:[B

    array-length v1, v1

    invoke-virtual {v0, v1}, Ljava/io/DataOutputStream;->writeShort(I)V

    sget v1, Ln;->Code:I

    const/4 v2, 0x6

    if-ne v1, v2, :cond_2

    const/4 v1, 0x0

    :goto_2
    iget-object v2, p1, Lg;->ad:[B

    array-length v2, v2

    if-ge v1, v2, :cond_3

    iget-object v2, p1, Lg;->ad:[B

    array-length v2, v2

    sub-int/2addr v2, v1

    const/16 v4, 0x4000

    if-lt v2, v4, :cond_1

    const/16 v2, 0x4000

    :cond_1
    iget-object v4, p1, Lg;->ad:[B

    invoke-virtual {v0, v4, v1, v2}, Ljava/io/DataOutputStream;->write([BII)V
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_4

    add-int/2addr v1, v2

    goto :goto_2

    :catch_0
    move-exception v2

    :try_start_5
    invoke-interface {p0}, Ljavax/microedition/io/Connection;->close()V
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_2

    const/4 v2, 0x0

    goto :goto_1

    :cond_2
    :try_start_6
    iget-object v1, p1, Lg;->ad:[B

    invoke-virtual {v0, v1}, Ljava/io/OutputStream;->write([B)V

    :cond_3
    invoke-virtual {v0}, Ljava/io/DataOutputStream;->flush()V

    const/4 v1, 0x3

    new-array v1, v1, [Ljava/lang/Object;

    const/4 v2, 0x0

    new-instance v4, Ljava/lang/StringBuffer;

    invoke-direct {v4}, Ljava/lang/StringBuffer;-><init>()V

    invoke-virtual {v4, p2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    const-string v5, "/"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    invoke-virtual {v4, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v3

    aput-object v3, v1, v2

    const/4 v2, 0x1

    if-eqz p4, :cond_4

    move-object v3, p4

    :goto_3
    aput-object v3, v1, v2

    const/4 v2, 0x2

    iget-object v3, p1, Lg;->f:[B

    if-eqz v3, :cond_6

    iget-object v3, p1, Lg;->f:[B

    :goto_4
    aput-object v3, v1, v2

    const/4 v2, -0x1

    if-ne p3, v2, :cond_7

    sget-object v2, Ln;->bq:Ljava/util/Vector;

    invoke-virtual {v2, v1}, Ljava/util/Vector;->addElement(Ljava/lang/Object;)V
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_4

    move-object v1, p0

    :goto_5
    const/4 v2, 0x0

    sput-object v2, Lm;->c:Ljava/util/Vector;

    invoke-static {v0}, Ln;->Code(Ljava/lang/Object;)V

    invoke-static {v1}, Ln;->Code(Ljava/lang/Object;)V

    const/4 v0, 0x0

    invoke-static {v0}, Ln;->Code(Z)V

    const/4 v0, 0x0

    :goto_6
    return v0

    :cond_4
    :try_start_7
    iget-object v3, p1, Lg;->c:Ljava/lang/String;

    if-eqz v3, :cond_5

    iget-object v3, p1, Lg;->c:Ljava/lang/String;

    goto :goto_3

    :cond_5
    const-string v3, ""

    goto :goto_3

    :cond_6
    const/4 v3, 0x0

    new-array v3, v3, [B

    goto :goto_4

    :cond_7
    sget-object v2, Ln;->bq:Ljava/util/Vector;

    invoke-virtual {v2, v1, p3}, Ljava/util/Vector;->insertElementAt(Ljava/lang/Object;I)V
    :try_end_7
    .catchall {:try_start_7 .. :try_end_7} :catchall_4

    move-object v1, p0

    goto :goto_5

    :catchall_0
    move-exception v2

    move-object v7, v2

    move-object v2, v0

    move-object v0, v7

    :goto_7
    :try_start_8
    const-string v3, ""

    sput-object v3, Ln;->br:Ljava/lang/String;

    instance-of v0, v0, Ljava/lang/SecurityException;
    :try_end_8
    .catchall {:try_start_8 .. :try_end_8} :catchall_1

    if-eqz v0, :cond_8

    const/4 v0, 0x2

    invoke-static {v1}, Ln;->Code(Ljava/lang/Object;)V

    invoke-static {v2}, Ln;->Code(Ljava/lang/Object;)V

    const/4 v1, 0x0

    invoke-static {v1}, Ln;->Code(Z)V

    goto :goto_6

    :cond_8
    const/4 v0, 0x1

    invoke-static {v1}, Ln;->Code(Ljava/lang/Object;)V

    invoke-static {v2}, Ln;->Code(Ljava/lang/Object;)V

    const/4 v1, 0x0

    invoke-static {v1}, Ln;->Code(Z)V

    goto :goto_6

    :catchall_1
    move-exception v0

    invoke-static {v1}, Ln;->Code(Ljava/lang/Object;)V

    invoke-static {v2}, Ln;->Code(Ljava/lang/Object;)V

    const/4 v1, 0x0

    invoke-static {v1}, Ln;->Code(Z)V

    throw v0

    :catchall_2
    move-exception v0

    move-object v2, p0

    goto :goto_7

    :catchall_3
    move-exception v0

    goto :goto_7

    :catchall_4
    move-exception v1

    move-object v2, p0

    move-object v7, v0

    move-object v0, v1

    move-object v1, v7

    goto :goto_7

    :cond_9
    move-object v2, p0

    goto/16 :goto_0

    :cond_a
    move-object v7, v1

    move-object v1, v0

    move-object v0, v7

    goto :goto_5
.end method

.method public final Code()Ljava/lang/String;
    .locals 2

    sget-object v0, Lm;->Z:Ljava/lang/String;

    if-eqz v0, :cond_0

    const/16 v0, 0xa4

    const/4 v1, 0x1

    invoke-direct {p0, v1}, Lm;->Z(Z)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Ln;->Code(ILjava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :goto_0
    return-object v0

    :cond_0
    sget-object v0, Lm;->Code:Ljava/lang/String;

    if-nez v0, :cond_1

    const-string v0, "/"

    goto :goto_0

    :cond_1
    sget-object v0, Lm;->Code:Ljava/lang/String;

    goto :goto_0
.end method

.method public final Code(Z)Ljava/util/Vector;
    .locals 13

    const/4 v12, 0x4

    const/4 v9, 0x2

    const/4 v11, 0x1

    const/4 v10, 0x0

    new-instance v1, Ljava/util/Vector;

    invoke-direct {v1}, Ljava/util/Vector;-><init>()V

    sput-object v1, Lm;->c:Ljava/util/Vector;

    sput-boolean v10, Lm;->d:Z

    sget-object v1, Lm;->Z:Ljava/lang/String;

    if-eqz v1, :cond_5

    sget-object v1, Lm;->c:Ljava/util/Vector;

    const/4 v2, 0x4

    :try_start_0
    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    const-string v4, "/"

    aput-object v4, v2, v3

    const/4 v3, 0x1

    new-instance v4, Ljava/lang/Integer;

    const/4 v5, 0x5

    invoke-direct {v4, v5}, Ljava/lang/Integer;-><init>(I)V

    aput-object v4, v2, v3

    const/4 v3, 0x2

    const/16 v4, 0xa2

    invoke-static {v4}, Ln;->I(I)Ljava/lang/String;

    move-result-object v4

    aput-object v4, v2, v3

    const/4 v3, 0x3

    const/4 v4, 0x0

    aput-object v4, v2, v3

    invoke-virtual {v1, v2}, Ljava/util/Vector;->addElement(Ljava/lang/Object;)V

    :cond_0
    :goto_0
    sget-object v1, Lm;->c:Ljava/util/Vector;

    invoke-virtual {v1}, Ljava/util/Vector;->size()I

    move-result v1

    if-nez v1, :cond_4

    new-instance v1, Ljava/lang/StringBuffer;

    invoke-direct {v1}, Ljava/lang/StringBuffer;-><init>()V

    const-string v2, "file:///"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    sget-object v2, Lm;->Code:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    invoke-static {v1, v2}, Ljavax/microedition/io/Connector;->open(Ljava/lang/String;I)Ljavax/microedition/io/Connection;

    move-result-object v1

    check-cast v1, Ljavax/microedition/io/file/FileConnection;

    invoke-interface {v1}, Ljavax/microedition/io/file/FileConnection;->list()Ljava/util/Enumeration;

    move-result-object v3

    invoke-static {v1}, Ln;->Code(Ljava/lang/Object;)V

    invoke-virtual {p0}, Lm;->J()Ljavax/microedition/lcdui/Image;

    move-result-object v1

    iput-object v1, p0, Lm;->e:Ljavax/microedition/lcdui/Image;

    new-instance v4, Ljava/util/Vector;

    invoke-direct {v4}, Ljava/util/Vector;-><init>()V

    :cond_1
    :goto_1
    invoke-interface {v3}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v1

    if-eqz v1, :cond_11

    invoke-interface {v3}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    const-string v2, "/"

    invoke-virtual {v1, v2}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_d

    move v2, v12

    :goto_2
    or-int/lit8 v5, v2, 0x3

    and-int/lit8 v2, v5, 0x4

    if-nez v2, :cond_2

    if-nez p1, :cond_1

    const/4 v2, 0x1

    sput-boolean v2, Lm;->d:Z

    :cond_2
    and-int/lit8 v2, v5, 0x4

    if-nez v2, :cond_e

    sget-object v2, Lm;->c:Ljava/util/Vector;

    move-object v6, v2

    :goto_3
    const/4 v2, 0x4

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v7, 0x0

    new-instance v8, Ljava/lang/StringBuffer;

    invoke-direct {v8}, Ljava/lang/StringBuffer;-><init>()V

    sget-object v9, Lm;->Code:Ljava/lang/String;

    invoke-virtual {v8, v9}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v8

    invoke-virtual {v8, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v8

    aput-object v8, v2, v7

    const/4 v7, 0x1

    new-instance v8, Ljava/lang/Integer;

    invoke-direct {v8, v5}, Ljava/lang/Integer;-><init>(I)V

    aput-object v8, v2, v7

    const/4 v5, 0x2

    aput-object v1, v2, v5

    const/4 v1, 0x3

    const/4 v5, 0x0

    aput-object v5, v2, v1

    move-object v0, v2

    check-cast v0, [Ljava/lang/Object;

    move-object v1, v0

    const/4 v5, 0x2

    aget-object v1, v1, v5

    check-cast v1, Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v6}, Ljava/util/Vector;->size()I

    move-result v1

    sub-int v7, v1, v11

    if-ltz v7, :cond_3

    invoke-virtual {v6}, Ljava/util/Vector;->lastElement()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, [Ljava/lang/Object;

    const/4 v8, 0x2

    aget-object v1, v1, v8

    check-cast v1, Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v5, v1}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I

    move-result v1

    if-ltz v1, :cond_f

    :cond_3
    invoke-virtual {v6, v2}, Ljava/util/Vector;->addElement(Ljava/lang/Object;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception v1

    const-string v2, "FileSystem.ls"

    invoke-direct {p0, v1, v2}, Lm;->Code(Ljava/lang/Throwable;Ljava/lang/String;)V

    :cond_4
    :goto_4
    sget-object v1, Lm;->c:Ljava/util/Vector;

    return-object v1

    :cond_5
    :try_start_1
    sget-object v1, Lm;->Code:Ljava/lang/String;

    if-nez v1, :cond_0

    const/4 v1, 0x5

    new-array v1, v1, [Ljava/lang/String;

    const/4 v2, 0x0

    const-string v3, "photos"

    aput-object v3, v1, v2

    const/4 v2, 0x1

    const-string v3, "graphics"

    aput-object v3, v1, v2

    const/4 v2, 0x2

    const-string v3, "videos"

    aput-object v3, v1, v2

    const/4 v2, 0x3

    const-string v3, "music"

    aput-object v3, v1, v2

    const/4 v2, 0x4

    const-string v3, "tones"

    aput-object v3, v1, v2

    move v2, v10

    :goto_5
    array-length v3, v1

    if-ge v2, v3, :cond_a

    new-instance v3, Ljava/lang/StringBuffer;

    invoke-direct {v3}, Ljava/lang/StringBuffer;-><init>()V

    const-string v4, "fileconn.dir."

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    aget-object v4, v1, v2

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    if-eqz v3, :cond_9

    const-string v4, "file:///"

    invoke-virtual {v3, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_9

    new-instance v4, Ljava/lang/StringBuffer;

    invoke-direct {v4}, Ljava/lang/StringBuffer;-><init>()V

    const-string v5, "fileconn.dir."

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    aget-object v5, v1, v2

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    const-string v5, ".name"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    if-eqz v4, :cond_6

    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v5

    if-ne v5, v11, :cond_7

    :cond_6
    const/16 v4, 0x8

    invoke-virtual {v3, v4}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v4

    :cond_7
    const/16 v5, 0x2f

    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v6

    sub-int/2addr v6, v9

    invoke-virtual {v4, v5, v6}, Ljava/lang/String;->lastIndexOf(II)I

    move-result v5

    if-ltz v5, :cond_8

    add-int/lit8 v5, v5, 0x1

    invoke-virtual {v4, v5}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v4

    :cond_8
    sget-object v5, Lm;->c:Ljava/util/Vector;

    const/4 v6, 0x4

    new-array v6, v6, [Ljava/lang/Object;

    const/4 v7, 0x0

    const/16 v8, 0x8

    invoke-virtual {v3, v8}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v6, v7

    const/4 v3, 0x1

    new-instance v7, Ljava/lang/Integer;

    const/4 v8, 0x5

    invoke-direct {v7, v8}, Ljava/lang/Integer;-><init>(I)V

    aput-object v7, v6, v3

    const/4 v3, 0x2

    aput-object v4, v6, v3

    const/4 v3, 0x3

    const/4 v4, 0x0

    aput-object v4, v6, v3

    invoke-virtual {v5, v6}, Ljava/util/Vector;->addElement(Ljava/lang/Object;)V

    :cond_9
    add-int/lit8 v2, v2, 0x1

    goto/16 :goto_5

    :cond_a
    const-string v1, "fileconn.dir.roots.names"

    invoke-static {v1}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {}, Ljavax/microedition/io/file/FileSystemRegistry;->listRoots()Ljava/util/Enumeration;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v3

    if-nez v3, :cond_16

    new-instance v1, Ljava/io/IOException;

    const/16 v2, 0xa3

    invoke-static {v2}, Ln;->I(I)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v1

    :goto_6
    invoke-interface {v2}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v1

    if-eqz v1, :cond_c

    invoke-interface {v2}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    if-eqz v3, :cond_15

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v4

    if-lez v4, :cond_15

    const/16 v4, 0x3b

    invoke-virtual {v3, v4}, Ljava/lang/String;->indexOf(I)I

    move-result v4

    const/4 v5, -0x1

    if-eq v4, v5, :cond_b

    const/4 v5, 0x0

    invoke-virtual {v3, v5, v4}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v5

    add-int/lit8 v4, v4, 0x1

    invoke-virtual {v3, v4}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v3

    move-object v4, v3

    move-object v3, v5

    :goto_7
    sget-object v5, Lm;->c:Ljava/util/Vector;

    const/4 v6, 0x4

    new-array v6, v6, [Ljava/lang/Object;

    const/4 v7, 0x0

    aput-object v1, v6, v7

    const/4 v1, 0x1

    new-instance v7, Ljava/lang/Integer;

    const/4 v8, 0x5

    invoke-direct {v7, v8}, Ljava/lang/Integer;-><init>(I)V

    aput-object v7, v6, v1

    const/4 v1, 0x2

    aput-object v3, v6, v1

    const/4 v1, 0x3

    const/4 v3, 0x0

    aput-object v3, v6, v1

    invoke-virtual {v5, v6}, Ljava/util/Vector;->addElement(Ljava/lang/Object;)V

    move-object v3, v4

    goto :goto_6

    :cond_b
    move-object v4, v3

    goto :goto_7

    :cond_c
    sget-object v1, Lm;->c:Ljava/util/Vector;

    invoke-virtual {v1}, Ljava/util/Vector;->size()I

    move-result v1

    if-ne v1, v11, :cond_0

    sget-object v1, Lm;->c:Ljava/util/Vector;

    invoke-virtual {v1}, Ljava/util/Vector;->firstElement()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, [Ljava/lang/Object;

    const/4 v2, 0x0

    aget-object v1, v1, v2

    check-cast v1, Ljava/lang/String;

    sput-object v1, Lm;->I:Ljava/lang/String;

    sput-object v1, Lm;->Code:Ljava/lang/String;

    new-instance v1, Ljava/util/Vector;

    invoke-direct {v1}, Ljava/util/Vector;-><init>()V

    sput-object v1, Lm;->c:Ljava/util/Vector;

    goto/16 :goto_0

    :cond_d
    move v2, v10

    goto/16 :goto_2

    :cond_e
    move-object v6, v4

    goto/16 :goto_3

    :cond_f
    :goto_8
    if-lez v7, :cond_10

    sub-int v1, v7, v11

    invoke-virtual {v6, v1}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, [Ljava/lang/Object;

    const/4 v8, 0x2

    aget-object v1, v1, v8

    check-cast v1, Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v5, v1}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I

    move-result v1

    if-gez v1, :cond_10

    add-int/lit8 v1, v7, -0x1

    move v7, v1

    goto :goto_8

    :cond_10
    invoke-virtual {v6, v2, v7}, Ljava/util/Vector;->insertElementAt(Ljava/lang/Object;I)V

    goto/16 :goto_1

    :cond_11
    move v1, v10

    :goto_9
    sget-object v2, Lm;->c:Ljava/util/Vector;

    invoke-virtual {v2}, Ljava/util/Vector;->size()I

    move-result v2

    if-ge v1, v2, :cond_12

    sget-object v2, Lm;->c:Ljava/util/Vector;

    invoke-virtual {v2, v1}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v2

    invoke-virtual {v4, v2}, Ljava/util/Vector;->addElement(Ljava/lang/Object;)V

    add-int/lit8 v1, v1, 0x1

    goto :goto_9

    :cond_12
    sput-object v4, Lm;->c:Ljava/util/Vector;

    invoke-virtual {p0}, Lm;->Z()Z

    move-result v1

    if-nez v1, :cond_4

    sget-object v1, Lm;->Z:Ljava/lang/String;

    if-nez v1, :cond_4

    if-eqz p1, :cond_13

    sget-object v1, Lm;->c:Ljava/util/Vector;

    const/4 v2, 0x4

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    const-string v4, "+"

    aput-object v4, v2, v3

    const/4 v3, 0x1

    new-instance v4, Ljava/lang/Integer;

    const/4 v5, 0x5

    invoke-direct {v4, v5}, Ljava/lang/Integer;-><init>(I)V

    aput-object v4, v2, v3

    const/4 v3, 0x2

    new-instance v4, Ljava/lang/StringBuffer;

    invoke-direct {v4}, Ljava/lang/StringBuffer;-><init>()V

    const-string v5, "<"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    const/16 v5, 0xab

    invoke-static {v5}, Ln;->I(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    const-string v5, ">"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v4

    aput-object v4, v2, v3

    const/4 v3, 0x3

    const/4 v4, 0x0

    aput-object v4, v2, v3

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3}, Ljava/util/Vector;->insertElementAt(Ljava/lang/Object;I)V

    :cond_13
    sget-object v1, Lm;->I:Ljava/lang/String;

    if-eqz v1, :cond_14

    sget-object v1, Lm;->I:Ljava/lang/String;

    sget-object v2, Lm;->Code:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_4

    :cond_14
    sget-object v1, Lm;->c:Ljava/util/Vector;

    const/4 v2, 0x4

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    const-string v4, ".."

    aput-object v4, v2, v3

    const/4 v3, 0x1

    new-instance v4, Ljava/lang/Integer;

    const/4 v5, 0x5

    invoke-direct {v4, v5}, Ljava/lang/Integer;-><init>(I)V

    aput-object v4, v2, v3

    const/4 v3, 0x2

    const-string v4, ".."

    aput-object v4, v2, v3

    const/4 v3, 0x3

    const/4 v4, 0x0

    aput-object v4, v2, v3

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3}, Ljava/util/Vector;->insertElementAt(Ljava/lang/Object;I)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto/16 :goto_4

    :cond_15
    move-object v4, v3

    move-object v3, v1

    goto/16 :goto_7

    :cond_16
    move-object v3, v1

    goto/16 :goto_6
.end method

.method public final Code([Ljava/lang/Object;)Ljavax/microedition/lcdui/Image;
    .locals 10

    const/4 v7, 0x0

    const/4 v0, 0x0

    aget-object v0, p1, v0

    check-cast v0, Ljava/lang/String;

    invoke-virtual {p0}, Lm;->J()Ljavax/microedition/lcdui/Image;

    move-result-object v1

    :try_start_0
    new-instance v2, Ljava/lang/StringBuffer;

    invoke-direct {v2}, Ljava/lang/StringBuffer;-><init>()V

    const-string v3, "file:///"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    const/4 v2, 0x1

    invoke-static {v0, v2}, Ljavax/microedition/io/Connector;->open(Ljava/lang/String;I)Ljavax/microedition/io/Connection;

    move-result-object v0

    check-cast v0, Ljavax/microedition/io/file/FileConnection;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :try_start_1
    new-instance v2, Ljava/lang/StringBuffer;

    invoke-direct {v2}, Ljava/lang/StringBuffer;-><init>()V

    invoke-interface {v0}, Ljavax/microedition/io/file/FileConnection;->fileSize()J

    move-result-wide v3

    const/16 v5, 0x3ff

    int-to-long v5, v5

    add-long/2addr v3, v5

    const/16 v5, 0xa

    shr-long/2addr v3, v5

    invoke-virtual {v2, v3, v4}, Ljava/lang/StringBuffer;->append(J)Ljava/lang/StringBuffer;

    move-result-object v2

    const-string v3, " kB"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    move-result-object v2

    :try_start_2
    invoke-interface {v0}, Ljavax/microedition/io/file/FileConnection;->fileSize()J

    move-result-wide v3

    const-wide/16 v5, 0x0

    cmp-long v3, v3, v5

    if-lez v3, :cond_1

    invoke-interface {v0}, Ljavax/microedition/io/file/FileConnection;->openDataInputStream()Ljava/io/DataInputStream;

    move-result-object v3

    invoke-static {v3}, Ln;->Code(Ljava/io/DataInputStream;)Ljavax/microedition/lcdui/Image;

    move-result-object v3

    if-eqz v3, :cond_0

    const/4 v4, 0x0

    iget-object v5, p0, Lm;->e:Ljavax/microedition/lcdui/Image;

    invoke-virtual {v5}, Ljavax/microedition/lcdui/Image;->getHeight()I

    move-result v5

    const/4 v6, 0x0

    const/4 v7, 0x0

    invoke-static {v3, v4, v5, v6, v7}, Ln;->Code(Ljavax/microedition/lcdui/Image;IIIZ)Ljavax/microedition/lcdui/Image;

    move-result-object v3

    invoke-virtual {v1}, Ljavax/microedition/lcdui/Image;->getWidth()I

    move-result v4

    invoke-virtual {v1}, Ljavax/microedition/lcdui/Image;->getHeight()I

    move-result v5

    invoke-static {v4, v5}, Ljavax/microedition/lcdui/Image;->createImage(II)Ljavax/microedition/lcdui/Image;

    move-result-object v1

    invoke-virtual {v1}, Ljavax/microedition/lcdui/Image;->getGraphics()Ljavax/microedition/lcdui/Graphics;

    move-result-object v4

    const/4 v5, 0x0

    const/4 v6, 0x0

    invoke-virtual {v1}, Ljavax/microedition/lcdui/Image;->getWidth()I

    move-result v7

    invoke-virtual {v1}, Ljavax/microedition/lcdui/Image;->getHeight()I

    move-result v8

    invoke-virtual {v4, v5, v6, v7, v8}, Ljavax/microedition/lcdui/Graphics;->fillRect(IIII)V

    invoke-virtual {v1}, Ljavax/microedition/lcdui/Image;->getGraphics()Ljavax/microedition/lcdui/Graphics;

    move-result-object v4

    invoke-virtual {v1}, Ljavax/microedition/lcdui/Image;->getWidth()I

    move-result v5

    invoke-virtual {v3}, Ljavax/microedition/lcdui/Image;->getWidth()I

    move-result v6

    sub-int/2addr v5, v6

    shr-int/lit8 v5, v5, 0x1

    const/4 v6, 0x0

    const/16 v7, 0x14

    invoke-virtual {v4, v3, v5, v6, v7}, Ljavax/microedition/lcdui/Graphics;->drawImage(Ljavax/microedition/lcdui/Image;III)V

    :cond_0
    sget v3, Ln;->cn:I

    const/4 v4, -0x1

    if-eq v3, v4, :cond_1

    new-instance v3, Ljava/lang/StringBuffer;

    invoke-direct {v3}, Ljava/lang/StringBuffer;-><init>()V

    sget v4, Ln;->cn:I

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;

    move-result-object v3

    const-string v4, "x"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    sget v4, Ln;->co:I

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;

    move-result-object v3

    const-string v4, ", "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    invoke-virtual {v3, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2

    move-result-object v2

    :cond_1
    invoke-static {v0}, Ln;->Code(Ljava/lang/Object;)V

    move-object v0, v1

    move-object v1, v2

    :goto_0
    const/4 v2, 0x3

    aput-object v1, p1, v2

    return-object v0

    :catch_0
    move-exception v0

    move-object v0, v1

    move-object v2, v7

    move-object v1, v7

    :goto_1
    invoke-static {v2}, Ln;->Code(Ljava/lang/Object;)V

    goto :goto_0

    :catchall_0
    move-exception v0

    move-object v1, v7

    :goto_2
    invoke-static {v1}, Ln;->Code(Ljava/lang/Object;)V

    throw v0

    :catchall_1
    move-exception v1

    move-object v9, v1

    move-object v1, v0

    move-object v0, v9

    goto :goto_2

    :catch_1
    move-exception v2

    move-object v2, v0

    move-object v0, v1

    move-object v1, v7

    goto :goto_1

    :catch_2
    move-exception v3

    move-object v9, v1

    move-object v1, v2

    move-object v2, v0

    move-object v0, v9

    goto :goto_1
.end method

.method public final Code(Ljava/lang/String;)V
    .locals 5

    const/4 v4, 0x0

    const-string v0, "/"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    sput-object v4, Lm;->Z:Ljava/lang/String;

    sput-object v4, Lm;->Code:Ljava/lang/String;

    :goto_0
    return-void

    :cond_0
    const-string v0, ".."

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    sget-object v0, Lm;->Code:Ljava/lang/String;

    const/16 v1, 0x2f

    sget-object v2, Lm;->Code:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    const/4 v3, 0x2

    sub-int/2addr v2, v3

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->lastIndexOf(II)I

    move-result v0

    if-lez v0, :cond_1

    sget-object v1, Lm;->Code:Ljava/lang/String;

    const/4 v2, 0x0

    add-int/lit8 v0, v0, 0x1

    invoke-virtual {v1, v2, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lm;->Code:Ljava/lang/String;

    goto :goto_0

    :cond_1
    sput-object v4, Lm;->Code:Ljava/lang/String;

    goto :goto_0

    :cond_2
    sput-object p1, Lm;->Code:Ljava/lang/String;

    goto :goto_0
.end method

.method public final Code(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 4

    const/4 v3, 0x1

    const/4 v2, 0x0

    :try_start_0
    invoke-virtual {p0}, Lm;->I()V

    sput-object p2, Lm;->J:Ljava/lang/String;

    const/4 v0, 0x0

    const/4 v1, 0x1

    invoke-static {p1, v0, v1}, Ln;->Code(Ljava/lang/String;ZZ)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljavax/microedition/io/Connector;->open(Ljava/lang/String;)Ljavax/microedition/io/Connection;

    move-result-object v0

    check-cast v0, Ljavax/microedition/io/ContentConnection;

    sput-object v0, Lm;->B:Ljavax/microedition/io/ContentConnection;

    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lm;->Z(Z)Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    sput-object v0, Lm;->Z:Ljava/lang/String;

    move v0, v3

    :goto_0
    return v0

    :catch_0
    move-exception v0

    const-string v1, "FileSystem.openSourcefile"

    invoke-direct {p0, v0, v1}, Lm;->Code(Ljava/lang/Throwable;Ljava/lang/String;)V

    move v0, v2

    goto :goto_0
.end method

.method public final I(Ljava/lang/String;)Ljavax/microedition/io/InputConnection;
    .locals 3

    :try_start_0
    new-instance v1, Ljava/lang/StringBuffer;

    invoke-direct {v1}, Ljava/lang/StringBuffer;-><init>()V

    const-string v2, "file:///"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    invoke-static {v1, v2}, Ljavax/microedition/io/Connector;->open(Ljava/lang/String;I)Ljavax/microedition/io/Connection;

    move-result-object v1

    move-object v0, v1

    check-cast v0, Ljavax/microedition/io/InputConnection;

    move-object p0, v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-object v1, p0

    :goto_0
    return-object v1

    :catch_0
    move-exception v1

    const-string v2, "FileSystem.get"

    invoke-direct {p0, v1, v2}, Lm;->Code(Ljava/lang/Throwable;Ljava/lang/String;)V

    const/4 v1, 0x0

    goto :goto_0
.end method

.method public final I()V
    .locals 2

    const/4 v1, 0x0

    sput-object v1, Lm;->Z:Ljava/lang/String;

    sget-object v0, Lm;->B:Ljavax/microedition/io/ContentConnection;

    invoke-static {v0}, Ln;->Code(Ljava/lang/Object;)V

    sput-object v1, Lm;->B:Ljavax/microedition/io/ContentConnection;

    sput-object v1, Lm;->J:Ljava/lang/String;

    return-void
.end method

.method public final I(Z)Z
    .locals 4

    const/4 v3, 0x1

    const/4 v2, 0x0

    const/4 v0, 0x0

    if-nez p1, :cond_0

    sget-object v1, Ln;->br:Ljava/lang/String;

    if-eqz v1, :cond_0

    sget-object v1, Ln;->br:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_0

    move v0, v3

    :goto_0
    return v0

    :cond_0
    if-eqz p1, :cond_1

    sget-object v1, Lm;->Code:Ljava/lang/String;

    if-eqz v1, :cond_1

    sget-object v1, Lm;->Code:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_1

    sget-object v0, Lm;->Code:Ljava/lang/String;

    :cond_1
    if-eqz v0, :cond_4

    const-string v1, "file:///"

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    :cond_2
    const-string v1, "/"

    invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_3

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    sub-int/2addr v1, v3

    invoke-virtual {v0, v2, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    :cond_3
    sput-object v0, Ln;->br:Ljava/lang/String;

    invoke-static {v2}, Ln;->Code(Z)V

    :cond_4
    sget-object v0, Ln;->br:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_5

    move v0, v3

    goto :goto_0

    :cond_5
    move v0, v2

    goto :goto_0
.end method

.method public final J()Ljavax/microedition/lcdui/Image;
    .locals 4

    const/4 v3, 0x1

    const/4 v2, 0x0

    invoke-static {v2}, Ln;->b(I)I

    move-result v0

    invoke-static {v3}, Ln;->b(I)I

    move-result v1

    add-int/2addr v0, v1

    iget-object v1, p0, Lm;->e:Ljavax/microedition/lcdui/Image;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lm;->e:Ljavax/microedition/lcdui/Image;

    invoke-virtual {v1}, Ljavax/microedition/lcdui/Image;->getHeight()I

    move-result v1

    if-eq v1, v0, :cond_1

    :cond_0
    const/16 v1, 0x52

    invoke-static {v1}, Ln;->c(I)Ljavax/microedition/lcdui/Image;

    move-result-object v1

    invoke-static {v1, v2, v0, v2, v3}, Ln;->Code(Ljavax/microedition/lcdui/Image;IIIZ)Ljavax/microedition/lcdui/Image;

    move-result-object v0

    iput-object v0, p0, Lm;->e:Ljavax/microedition/lcdui/Image;

    :cond_1
    iget-object v0, p0, Lm;->e:Ljavax/microedition/lcdui/Image;

    return-object v0
.end method

.method public final J(Ljava/lang/String;)Z
    .locals 12

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    if-nez v0, :cond_8

    const-string v0, "unnamed"

    :goto_0
    sget-object v1, Lm;->B:Ljavax/microedition/io/ContentConnection;

    if-nez v1, :cond_0

    const/4 v0, 0x0

    :goto_1
    return v0

    :cond_0
    sget-object v1, Lm;->B:Ljavax/microedition/io/ContentConnection;

    invoke-interface {v1}, Ljavax/microedition/io/ContentConnection;->getLength()J

    move-result-wide v1

    long-to-int v1, v1

    iput v1, p0, Lm;->a:I

    iget v1, p0, Lm;->a:I

    const/4 v2, -0x1

    if-ne v1, v2, :cond_1

    sget-object v0, LBrowser;->Z:Lah;

    const/16 v1, 0xa5

    invoke-static {v1}, Ln;->I(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lah;->I(Ljava/lang/String;)V

    const/4 v0, 0x0

    goto :goto_1

    :cond_1
    const/4 v1, 0x0

    iput v1, p0, Lm;->C:I

    sget-object v1, LBrowser;->Z:Lah;

    invoke-virtual {v1}, Lah;->d()V

    const/4 v1, 0x0

    const/4 v2, 0x0

    const/4 v3, 0x0

    sget-object v4, Lm;->B:Ljavax/microedition/io/ContentConnection;

    :try_start_0
    invoke-interface {v4}, Ljavax/microedition/io/InputConnection;->openInputStream()Ljava/io/InputStream;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    move-result-object v1

    :try_start_1
    new-instance v4, Ljava/lang/StringBuffer;

    invoke-direct {v4}, Ljava/lang/StringBuffer;-><init>()V

    sget-object v5, Lm;->Z:Ljava/lang/String;

    if-eqz v5, :cond_2

    sget-object v5, Lm;->Z:Ljava/lang/String;

    :goto_2
    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    invoke-virtual {v4, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v4

    const/4 v5, 0x3

    invoke-static {v4, v5}, Ljavax/microedition/io/Connector;->open(Ljava/lang/String;I)Ljavax/microedition/io/Connection;

    move-result-object p1

    check-cast p1, Ljavax/microedition/io/file/FileConnection;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_2
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_2

    const/16 v2, 0x200

    :try_start_2
    new-array v2, v2, [B

    const/4 v4, 0x1

    const-string v5, ""

    const/16 v6, 0x2e

    invoke-virtual {v0, v6}, Ljava/lang/String;->lastIndexOf(I)I

    move-result v6

    if-lez v6, :cond_7

    const/4 v5, 0x0

    invoke-virtual {v0, v5, v6}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v0, v6}, Ljava/lang/String;->substring(I)Ljava/lang/String;
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_3
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_3

    move-result-object v6

    move-object v7, v0

    move-object v0, v6

    move-object v6, p1

    move v11, v4

    move-object v4, v5

    move v5, v11

    :goto_3
    :try_start_3
    invoke-interface {v6}, Ljavax/microedition/io/file/FileConnection;->exists()Z

    move-result v8

    if-eqz v8, :cond_4

    invoke-static {v6}, Ln;->Code(Ljava/lang/Object;)V

    new-instance v7, Ljava/lang/StringBuffer;

    invoke-direct {v7}, Ljava/lang/StringBuffer;-><init>()V

    invoke-virtual {v7, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v7

    const-string v8, "-"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v7

    add-int/lit8 v8, v5, 0x1

    invoke-virtual {v7, v5}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;

    move-result-object v5

    invoke-virtual {v5, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v5

    new-instance v7, Ljava/lang/StringBuffer;

    invoke-direct {v7}, Ljava/lang/StringBuffer;-><init>()V

    sget-object v9, Lm;->Z:Ljava/lang/String;

    if-eqz v9, :cond_3

    sget-object v9, Lm;->Z:Ljava/lang/String;

    :goto_4
    invoke-virtual {v7, v9}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v7

    invoke-virtual {v7, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v7

    const/4 v9, 0x3

    invoke-static {v7, v9}, Ljavax/microedition/io/Connector;->open(Ljava/lang/String;I)Ljavax/microedition/io/Connection;

    move-result-object p1

    check-cast p1, Ljavax/microedition/io/file/FileConnection;
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_4
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_4

    move-object v6, p1

    move-object v7, v5

    move v5, v8

    goto :goto_3

    :cond_2
    :try_start_4
    new-instance v5, Ljava/lang/StringBuffer;

    invoke-direct {v5}, Ljava/lang/StringBuffer;-><init>()V

    const-string v6, "file:///"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v5

    sget-object v6, Lm;->Code:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_2
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_2

    move-result-object v5

    goto/16 :goto_2

    :cond_3
    :try_start_5
    new-instance v9, Ljava/lang/StringBuffer;

    invoke-direct {v9}, Ljava/lang/StringBuffer;-><init>()V

    const-string v10, "file:///"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v9

    sget-object v10, Lm;->Code:Ljava/lang/String;

    invoke-virtual {v9, v10}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v9

    goto :goto_4

    :cond_4
    invoke-interface {v6}, Ljavax/microedition/io/file/FileConnection;->create()V

    invoke-interface {v6}, Ljavax/microedition/io/file/FileConnection;->openOutputStream()Ljava/io/OutputStream;
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_4
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_4

    move-result-object v0

    :goto_5
    :try_start_6
    iget-boolean v3, p0, Lm;->b:Z

    if-nez v3, :cond_5

    invoke-virtual {v1, v2}, Ljava/io/InputStream;->read([B)I

    move-result v3

    const/4 v4, -0x1

    if-eq v3, v4, :cond_5

    iget v4, p0, Lm;->C:I

    add-int/2addr v4, v3

    iput v4, p0, Lm;->C:I

    const/4 v4, 0x0

    invoke-virtual {v0, v2, v4, v3}, Ljava/io/OutputStream;->write([BII)V
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_0

    goto :goto_5

    :catch_0
    move-exception v2

    move-object v3, v1

    move-object v1, v0

    move-object v0, v2

    move-object v2, v6

    :goto_6
    :try_start_7
    const-string v4, "Filesystem.put"

    invoke-direct {p0, v0, v4}, Lm;->Code(Ljava/lang/Throwable;Ljava/lang/String;)V
    :try_end_7
    .catchall {:try_start_7 .. :try_end_7} :catchall_5

    sget-wide v4, Ln;->bf:J

    iget v0, p0, Lm;->C:I

    int-to-long v6, v0

    add-long/2addr v4, v6

    sput-wide v4, Ln;->bf:J

    sget-wide v4, Ln;->bg:J

    iget v0, p0, Lm;->C:I

    int-to-long v6, v0

    add-long/2addr v4, v6

    sput-wide v4, Ln;->bg:J

    const/4 v0, -0x1

    iput v0, p0, Lm;->C:I

    const/4 v0, 0x0

    iput-boolean v0, p0, Lm;->b:Z

    invoke-static {v1}, Ln;->Code(Ljava/lang/Object;)V

    invoke-static {v2}, Ln;->Code(Ljava/lang/Object;)V

    invoke-static {v3}, Ln;->Code(Ljava/lang/Object;)V

    invoke-virtual {p0}, Lm;->I()V

    sget-object v0, LBrowser;->Z:Lah;

    invoke-virtual {v0}, Lah;->e()V

    sget-object v0, LBrowser;->Z:Lah;

    invoke-virtual {v0}, Lah;->c()V

    const/4 v0, 0x0

    goto/16 :goto_1

    :cond_5
    :try_start_8
    iget-boolean v2, p0, Lm;->b:Z

    if-eqz v2, :cond_6

    sget-object v2, LBrowser;->Z:Lah;

    const/16 v3, 0xa6

    invoke-static {v3}, Ln;->I(I)Ljava/lang/String;

    move-result-object v3

    new-instance v4, Ljava/lang/StringBuffer;

    invoke-direct {v4}, Ljava/lang/StringBuffer;-><init>()V

    invoke-virtual {v4, v7}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    const-string v5, " ("

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    iget v5, p0, Lm;->C:I

    add-int/lit16 v5, v5, 0x3ff

    shr-int/lit8 v5, v5, 0xa

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;

    move-result-object v4

    const-string v5, " kB)"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Lah;->Code(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_8
    .catchall {:try_start_8 .. :try_end_8} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_8 .. :try_end_8} :catch_0

    :goto_7
    const/4 v2, 0x1

    sget-wide v3, Ln;->bf:J

    iget v5, p0, Lm;->C:I

    int-to-long v7, v5

    add-long/2addr v3, v7

    sput-wide v3, Ln;->bf:J

    sget-wide v3, Ln;->bg:J

    iget v5, p0, Lm;->C:I

    int-to-long v7, v5

    add-long/2addr v3, v7

    sput-wide v3, Ln;->bg:J

    const/4 v3, -0x1

    iput v3, p0, Lm;->C:I

    const/4 v3, 0x0

    iput-boolean v3, p0, Lm;->b:Z

    invoke-static {v0}, Ln;->Code(Ljava/lang/Object;)V

    invoke-static {v6}, Ln;->Code(Ljava/lang/Object;)V

    invoke-static {v1}, Ln;->Code(Ljava/lang/Object;)V

    invoke-virtual {p0}, Lm;->I()V

    sget-object v0, LBrowser;->Z:Lah;

    invoke-virtual {v0}, Lah;->e()V

    sget-object v0, LBrowser;->Z:Lah;

    invoke-virtual {v0}, Lah;->c()V

    move v0, v2

    goto/16 :goto_1

    :cond_6
    :try_start_9
    sget-object v2, LBrowser;->Z:Lah;

    const/16 v3, 0xa7

    invoke-static {v3}, Ln;->I(I)Ljava/lang/String;

    move-result-object v3

    new-instance v4, Ljava/lang/StringBuffer;

    invoke-direct {v4}, Ljava/lang/StringBuffer;-><init>()V

    invoke-virtual {v4, v7}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    const-string v5, " ("

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    iget v5, p0, Lm;->C:I

    add-int/lit16 v5, v5, 0x3ff

    shr-int/lit8 v5, v5, 0xa

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;

    move-result-object v4

    const-string v5, " kB)"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Lah;->Code(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_9
    .catchall {:try_start_9 .. :try_end_9} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_9 .. :try_end_9} :catch_0

    goto :goto_7

    :catchall_0
    move-exception v2

    move-object v3, v1

    move-object v1, v0

    move-object v0, v2

    move-object v2, v6

    :goto_8
    sget-wide v4, Ln;->bf:J

    iget v6, p0, Lm;->C:I

    int-to-long v6, v6

    add-long/2addr v4, v6

    sput-wide v4, Ln;->bf:J

    sget-wide v4, Ln;->bg:J

    iget v6, p0, Lm;->C:I

    int-to-long v6, v6

    add-long/2addr v4, v6

    sput-wide v4, Ln;->bg:J

    const/4 v4, -0x1

    iput v4, p0, Lm;->C:I

    const/4 v4, 0x0

    iput-boolean v4, p0, Lm;->b:Z

    invoke-static {v1}, Ln;->Code(Ljava/lang/Object;)V

    invoke-static {v2}, Ln;->Code(Ljava/lang/Object;)V

    invoke-static {v3}, Ln;->Code(Ljava/lang/Object;)V

    invoke-virtual {p0}, Lm;->I()V

    sget-object v1, LBrowser;->Z:Lah;

    invoke-virtual {v1}, Lah;->e()V

    sget-object v1, LBrowser;->Z:Lah;

    invoke-virtual {v1}, Lah;->c()V

    throw v0

    :catchall_1
    move-exception v0

    move-object v11, v3

    move-object v3, v1

    move-object v1, v11

    goto :goto_8

    :catchall_2
    move-exception v0

    move-object v11, v3

    move-object v3, v1

    move-object v1, v11

    goto :goto_8

    :catchall_3
    move-exception v0

    move-object v2, p1

    move-object v11, v3

    move-object v3, v1

    move-object v1, v11

    goto :goto_8

    :catchall_4
    move-exception v0

    move-object v2, v6

    move-object v11, v3

    move-object v3, v1

    move-object v1, v11

    goto :goto_8

    :catchall_5
    move-exception v0

    goto :goto_8

    :catch_1
    move-exception v0

    move-object v11, v3

    move-object v3, v1

    move-object v1, v11

    goto/16 :goto_6

    :catch_2
    move-exception v0

    move-object v11, v3

    move-object v3, v1

    move-object v1, v11

    goto/16 :goto_6

    :catch_3
    move-exception v0

    move-object v2, p1

    move-object v11, v3

    move-object v3, v1

    move-object v1, v11

    goto/16 :goto_6

    :catch_4
    move-exception v0

    move-object v2, v6

    move-object v11, v3

    move-object v3, v1

    move-object v1, v11

    goto/16 :goto_6

    :cond_7
    move-object v6, p1

    move-object v7, v0

    move v11, v4

    move-object v4, v0

    move-object v0, v5

    move v5, v11

    goto/16 :goto_3

    :cond_8
    move-object v0, p1

    goto/16 :goto_0
.end method

.method public final Z(Ljava/lang/String;)I
    .locals 4

    const/4 v1, 0x0

    :try_start_0
    new-instance v0, Ljava/lang/StringBuffer;

    invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V

    const-string v2, "file:///"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    const/4 v2, 0x1

    invoke-static {v0, v2}, Ljavax/microedition/io/Connector;->open(Ljava/lang/String;I)Ljavax/microedition/io/Connection;

    move-result-object v0

    check-cast v0, Ljavax/microedition/io/file/FileConnection;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :try_start_1
    invoke-interface {v0}, Ljavax/microedition/io/file/FileConnection;->fileSize()J
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    move-result-wide v1

    long-to-int v1, v1

    invoke-static {v0}, Ln;->Code(Ljava/lang/Object;)V

    move v0, v1

    :goto_0
    return v0

    :catch_0
    move-exception v0

    :goto_1
    :try_start_2
    const-string v2, "FileSystem.getSize"

    invoke-direct {p0, v0, v2}, Lm;->Code(Ljava/lang/Throwable;Ljava/lang/String;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    invoke-static {v1}, Ln;->Code(Ljava/lang/Object;)V

    const/4 v0, -0x1

    goto :goto_0

    :catchall_0
    move-exception v0

    :goto_2
    invoke-static {v1}, Ln;->Code(Ljava/lang/Object;)V

    throw v0

    :catchall_1
    move-exception v1

    move-object v3, v1

    move-object v1, v0

    move-object v0, v3

    goto :goto_2

    :catch_1
    move-exception v1

    move-object v3, v1

    move-object v1, v0

    move-object v0, v3

    goto :goto_1
.end method

.method public final Z()Z
    .locals 1

    sget-object v0, Lm;->Code:Ljava/lang/String;

    if-nez v0, :cond_0

    sget-object v0, Lm;->Z:Ljava/lang/String;

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final a(Ljava/lang/String;)V
    .locals 11

    const/4 v2, 0x0

    const-string v0, "file:///"

    const-string v0, "/"

    :try_start_0
    new-instance v0, Ljava/lang/StringBuffer;

    invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V

    const-string v1, "file:///"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    const-string v1, "/"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x1

    invoke-static {v0, v1}, Ljavax/microedition/io/Connector;->open(Ljava/lang/String;I)Ljavax/microedition/io/Connection;

    move-result-object p0

    check-cast p0, Ljavax/microedition/io/file/FileConnection;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    :try_start_1
    const-string v0, "*.obml"

    const/4 v1, 0x0

    invoke-interface {p0, v0, v1}, Ljavax/microedition/io/file/FileConnection;->list(Ljava/lang/String;Z)Ljava/util/Enumeration;

    move-result-object v1

    invoke-interface {p0}, Ljavax/microedition/io/Connection;->close()V

    sget-object v0, Ln;->bq:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->removeAllElements()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_2

    move-object v3, p0

    :goto_0
    :try_start_2
    invoke-interface {v1}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v1}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Ljava/lang/String;

    new-instance v0, Ljava/lang/StringBuffer;

    invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    const-string v4, "/"

    invoke-virtual {v0, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    invoke-virtual {v0, p0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_4

    move-result-object v0

    :try_start_3
    new-instance v4, Ljava/lang/StringBuffer;

    invoke-direct {v4}, Ljava/lang/StringBuffer;-><init>()V

    const-string v5, "file:///"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    invoke-virtual {v4, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    const/4 v4, 0x1

    invoke-static {v0, v4}, Ljavax/microedition/io/Connector;->open(Ljava/lang/String;I)Ljavax/microedition/io/Connection;

    move-result-object v0

    check-cast v0, Ljavax/microedition/io/file/FileConnection;
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_6

    :try_start_4
    invoke-interface {v0}, Ljavax/microedition/io/file/FileConnection;->openDataInputStream()Ljava/io/DataInputStream;

    move-result-object v2

    const/16 v3, 0xe

    int-to-long v3, v3

    invoke-static {v2, v3, v4}, Ln;->Code(Ljava/io/InputStream;J)V

    invoke-virtual {v2}, Ljava/io/DataInputStream;->readUTF()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2}, Ljava/io/DataInputStream;->readShort()S

    move-result v4

    new-array v5, v4, [B

    const/4 v6, 0x0

    invoke-virtual {v2, v5, v6, v4}, Ljava/io/DataInputStream;->readFully([BII)V

    sget-object v4, Ln;->bq:Ljava/util/Vector;

    const/4 v6, 0x3

    new-array v6, v6, [Ljava/lang/Object;

    const/4 v7, 0x0

    new-instance v8, Ljava/lang/StringBuffer;

    invoke-direct {v8}, Ljava/lang/StringBuffer;-><init>()V

    invoke-virtual {v8, p1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v8

    const-string v9, "/"

    invoke-virtual {v8, v9}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v8

    invoke-virtual {v8, p0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v8

    aput-object v8, v6, v7

    const/4 v7, 0x1

    if-eqz v3, :cond_0

    :goto_1
    aput-object v3, v6, v7

    const/4 v3, 0x2

    aput-object v5, v6, v3

    invoke-virtual {v4, v6}, Ljava/util/Vector;->addElement(Ljava/lang/Object;)V
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    :try_start_5
    invoke-static {v0}, Ln;->Code(Ljava/lang/Object;)V

    invoke-static {v2}, Ln;->Code(Ljava/lang/Object;)V
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_3

    move-object v3, v0

    goto/16 :goto_0

    :cond_0
    :try_start_6
    const-string v3, ""
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_0

    goto :goto_1

    :catchall_0
    move-exception v3

    move-object v10, v2

    move-object v2, v0

    move-object v0, v10

    :goto_2
    :try_start_7
    invoke-static {v2}, Ln;->Code(Ljava/lang/Object;)V

    invoke-static {v0}, Ln;->Code(Ljava/lang/Object;)V
    :try_end_7
    .catchall {:try_start_7 .. :try_end_7} :catchall_5

    move-object v3, v2

    move-object v2, v0

    goto/16 :goto_0

    :cond_1
    invoke-static {v3}, Ln;->Code(Ljava/lang/Object;)V

    :goto_3
    return-void

    :catchall_1
    move-exception v0

    move-object v0, v2

    :goto_4
    invoke-static {v0}, Ln;->Code(Ljava/lang/Object;)V

    goto :goto_3

    :catchall_2
    move-exception v0

    move-object v0, p0

    goto :goto_4

    :catchall_3
    move-exception v1

    goto :goto_4

    :catchall_4
    move-exception v0

    move-object v0, v3

    goto :goto_4

    :catchall_5
    move-exception v0

    move-object v0, v2

    goto :goto_4

    :catchall_6
    move-exception v0

    move-object v0, v2

    move-object v2, v3

    goto :goto_2
.end method
